package com.yihu.beans;

import java.util.Date;
import java.util.List;

import com.yihu.beans.products.BaseCommodityCategory;

public abstract class BaseCommodity {
	private String id;
	private String _id ;
	private Users user;
	private String name = "";
	private double price = 0;
	private int like = 0;
	private int isRecommend = 0;
	private int sorts = 0;
	private long pv = 0 ;
	private List<String> keyword;
	private CommodityStates commodityStates;
	private Date putOnShelvesTime = new Date();
	private Date pullOffShelvesTime = new Date();
	private List<PictureDetail> pictures ;
	private BaseCommodityCategory baseCommodityCategory;
//	private CommodityContent commodityContent;
//	private String content;
	
//	public long getId() {
//		return id;
//	}
//	public void setId(long id) {
//		this.id = id;
//	}
	
	public Users getUser() {
		return user;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String get_id() {
		return _id;
	}
	public void set_id(String _id) {
		this._id = _id;
	}
	public void setUser(Users user) {
		this.user = user;
	}
	public String getName() {
		return name;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Date getPutOnShelvesTime() {
		return putOnShelvesTime;
	}
	public void setPutOnShelvesTime(Date putOnShelvesTime) {
		this.putOnShelvesTime = putOnShelvesTime;
	}
	public Date getPullOffShelvesTime() {
		return pullOffShelvesTime;
	}
	public void setPullOffShelvesTime(Date pullOffShelvesTime) {
		this.pullOffShelvesTime = pullOffShelvesTime;
	}

	public int getLike() {
		return like;
	}
	public void setLike(int like) {
		this.like = like;
	}
	public int getIsRecommend() {
		return isRecommend;
	}
	public void setIsRecommend(int isRecommend) {
		this.isRecommend = isRecommend;
	}
	public int getSorts() {
		return sorts;
	}
	public void setSorts(int sorts) {
		this.sorts = sorts;
	}
	public long getPv() {
		return pv;
	}
	public void setPv(long pv) {
		this.pv = pv;
	}
	public List<String> getKeyword() {
		return keyword;
	}
	public void setKeyword(List<String> keyword) {
		this.keyword = keyword;
	}
	public CommodityStates getCommodityStates() {
		return commodityStates;
	}
	public void setCommodityStates(CommodityStates commodityStates) {
		this.commodityStates = commodityStates;
	}
	public List<PictureDetail> getPictures() {
		return pictures;
	}
	public void setPictures(List<PictureDetail> pictures) {
		this.pictures = pictures;
	}
	public BaseCommodityCategory getBaseCommodityCategory() {
		return baseCommodityCategory;
	}
	public void setBaseCommodityCategory(BaseCommodityCategory baseCommodityCategory) {
		this.baseCommodityCategory = baseCommodityCategory;
	}
	
	
}
